package com.jinfang.bankpractice.model;
import java.util.Date;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* 历史记录
*/
public class History implements java.io.Serializable { 
	private Long id;	
	/** userid*/
	private Long  userid;
	/** course*/
	private Integer  course;
	/** score*/
	private Integer  score;
	/** createtime*/
	private Date  createtime;

	/** 默认构造器 */
	public History(){
		
	}
	
	public History(
			Long userid,
			Integer course,
			Integer score,
			Date createtime) {
			super();
			this.userid=userid;
			this.course=course;
			this.score=score;
			this.createtime=createtime;
		}	

	/** 全构造器 */
	public History(
		Long id,
		Long userid,
		Integer course,
		Integer score,
		Date createtime) {
		super();
		this.id=id;
		this.userid=userid;
		this.course=course;
		this.score=score;
		this.createtime=createtime;
	}	
	
	/** 获得 id */
	public Long  getId() { 
		return id; 
	}
	/** 设置 id */
	public void setId(Long id){
		this.id=id;
	}	
	/** 获得 userid */
	public Long  getUserid() { 
		return userid; 
	}
	/** 设置 userid */
	public void setUserid(Long userid){
		this.userid=userid;
	}	
	/** 获得 course */
	public Integer  getCourse() { 
		return course; 
	}
	/** 设置 course */
	public void setCourse(Integer course){
		this.course=course;
	}	
	/** 获得 score */
	public Integer  getScore() { 
		return score; 
	}
	/** 设置 score */
	public void setScore(Integer score){
		this.score=score;
	}	
	/** 获得 createtime */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")  
	public Date  getCreatetime() { 
		return createtime; 
	}
	/** 设置 createtime */
	public void setCreatetime(Date createtime){
		this.createtime=createtime;
	}	
	
	@Override
	public String toString() {
		return "历史记录 History ["
				+" id=" + id	+" userid=" + userid	+" course=" + course	+" score=" + score	+" createtime=" + createtime

		+ "]\n";
	}	
	
}
	
